package com.atde._04_structural_design_patterns.adapter.classadapter;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._04_structural_design_patterns.adapter.classadapter
 * @Author: Del
 * @CreateTime: 2025-06-18  20:02
 * @Description: 适配器模式 类适配器模式 测试类
 * @Version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        // 创建手机
        Phone phone = new Phone();

        // 手机使用适配器进行充电，适配器使用类适配器进行适配
        phone.charging(new VoltageAdapter());
    }
}
